import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'
import {createPinia} from "pinia";

const pinia = createPinia();
const app = createApp(App)
app.use(ElementPlus)

// 全局注册 Element Plus 图标（添加 i-ep- 前缀，避免冲突）
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(`i-ep-${key}`, component) // 关键修改：添加前缀
}
app.use(pinia)
app.use(router)
app.mount('#app')
